from models.models import Goods


def get_userinfo_from_username(app, _id):
    with app.app_context():
        goods = Goods.query.filter_by(id=_id).first()
    return goods
